<cfparam name="cfg_returnUrl" default="http://#http_host#">
<cfparam name="cfg_formName" default="Unknown">
<cfparam name="cfg_sendEmail" default="false">
<cfparam name="cfg_emailTo" default="">
<cfparam name="cfg_emailFrom" default="">
<cfparam name="cfg_emailFromFieldname" default="">
<cfparam name="cfg_emailSubject" default="Form submission received">

<cfwddx action="cfml2wddx" input="#form#" output="wddxForm">
	
<cfset thisDateTime = now()>

<!--- <cfmail to="ken@jel.net" from="formdataprocessor@calgrants.org" subject="Form Data from calgrants.org">
<cfoutput>
#wddxForm#
</cfoutput>
</cfmail> --->

<cfquery name="InsertFormData" datasource="#datasourcename#">
	insert into form_data
	(fod_formname,
	fod_data,
	fod_datesubmitted)
	values
	('#cfg_formName#',
	'#wddxForm#',
	#thisDateTime#)
</cfquery>

